﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.IO.IsolatedStorage;
using System.Windows.Controls.Primitives;
using Microsoft.Phone.Controls;


namespace JsonTest1.CControl
{
    public partial class TurioalDialog : UserControl
    {
        private PhoneApplicationPage _context;
        public TurioalDialog()
        {
            InitializeComponent();
        }

        public TurioalDialog(PhoneApplicationPage context)
        {
            InitializeComponent();
            _context = context;
        }


        public void setBtnClick(RoutedEventHandler click)
        {
             Save.Click += click;
        }

        public bool isChecked()
        {
            return next_btip.IsChecked==true;
        }

        public void Show()
        {
            if (_context != null)
            {
                PopupCotainer pc = new PopupCotainer(_context);
                pc.Show(this);
            }

        }

    }
}
